home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11278 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  34 lines

  1. Path: winnie.freenet.mb.ca!lip209
  2. From: Barry Chodirker <lip209@freenet.mb.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Help! Turbo C++ 4.5 Class Library
  5. Date: Wed, 13 Mar 1996 10:22:45 -0600
  6. Organization: Blue Sky FreeNet of Manitoba Inc.
  7. Message-ID: <Pine.SOL.3.91.960313100754.3720A-100000@winnie.freenet.mb.ca>
  8. NNTP-Posting-Host: winnie.freenet.mb.ca
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12.     I'm trying to create a double linked list of pointers to a
  13. structure(Record) with the template TIDoubleListImp.  I'm missing
  14. something in the declaration:
  15.    
  16.      typedef TIDoubleListImp<Record>  TheList;
  17.  
  18.     class ViewList {
  19.     public:
  20.         Record*    RecPtr;
  21.         TheList    List;
  22.     Other Members
  23.     };
  24.  
  25. Compiling generates the error "Illegal structure operation in the class 
  26. library include file DListImp.h --  It's balking at the casting operation:
  27.     while (!(STATIC_CAST(T, STATIC_CAST(void*, t) ==
  28.            *STATIC_CAST(T, ETC ETC))))
  29.  
  30.    Where have I gone wrong?  Any help would be appreciated.
  31. Thanks.
  32.   
  33.  
  34.